package com.oopnet.template.service;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

import com.oopnet.template.demo.ws.soap_cxf.HelloService;
import com.oopnet.template.demo.ws.soap_cxf.HelloServiceImpl;

public class JaxWsServer {
	public static void main(String[] args) {
		JaxWsServerFactoryBean factoryBean = new JaxWsServerFactoryBean();
		factoryBean.setAddress("http://localhost:8080/ws/soap/hello");
		factoryBean.setServiceClass(HelloService.class);
		factoryBean.setServiceBean(new HelloServiceImpl());
		factoryBean.create();
		System.out.println("Soap ws is published...");
		
	}
}
